import ajax from '@/core/ajax';

export const openFlow = (data: { [key: string]: any } = {}) => {
  return ajax.post('/flows/open', data);
};
export const closeFlow = (data: { [key: string]: any } = {}) => {
  return ajax.post('/flows/close', data);
};
export const getFlowDefine = (data: { [key: string]: any } = {}) => {
  return ajax.get('/flows/define', { params: { ...data } });
};
export const saveFlow = (data: { [key: string]: any } = {}) => {
  return ajax.post('/flows/save', data);
};
